import 'package:json_annotation/json_annotation.dart';
part 'devices_info_model.g.dart';

@JsonSerializable()
class DevicesInfoModel {
  // var name;
  // var age;

  /// app 名称
  String? appName;
  String? product;

  /// 每次用户安装app后生成的一个唯一标识  可以随机数加md5
  String? appUser;

  /// 城市相关
  String? cityName;
  String? ipCity;
  String? userCity;
  String? latitude;
  String? longitude;

  /// 是gps定位的方式
  /// 是ip定位 还是经纬度定位
  String? gpsType;

  /// 设备
  String? device;

  /// 设备唯一标识(卸载重装不变，重装系统后可能会变)
  String? deviceID;
  String? platform;

  String? mac;

  /// 是否越狱
  String? jail;

// 启动次数

  String? launch;

// 手机厂商
  String? manufacturer;

/**
 网络
 */
  String? network;

  String? screenDip;
  String? screenHeight;
  String? screenWidth;
  String? system;
  String? systemVersion;
  String? vendor;

  String? version;
//1.4.7新增（区分新老版本）
  String? timestamp;

//  无法获取

  String? imei;
  String? imei2;
  String? firstTime;

  String? webviewVersion;
  String? userAgent;

  String? deviceID_SM; //数美设备指纹唯一标识
  //客户端告诉服务器是否被调试了
  String? systemEtoc;

  //存放拼接DYLD_INSERT_LIBRARIES环境变量加密后的值
  String? dylib;
  //可疑动态库
  String? ambiguousDylib;
  //电池电量
  String? battery;
  //sim卡
  String? sim;
  //wifi-mac地址
  String? wifiMac;

  DevicesInfoModel();
  factory DevicesInfoModel.fromJson(Map<String, dynamic> json) =>
      _$DevicesInfoModelFromJson(json);
  Map<String, dynamic> toJson() => _$DevicesInfoModelToJson(this);
}
